package com.ats.ereg.model;

import org.springframework.context.ApplicationContext;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.ats.ereg.model.service.TstCoursesService;

public class Tester {

	public static void main(String[] args) {
		ApplicationContext applicationContext = new ClassPathXmlApplicationContext("Spring.xml");
		
		TstCoursesService tstCoursesService = (TstCoursesService)applicationContext.getBean("TstCoursesService");
		
		System.out.println("Start..."); 
		System.out.println(tstCoursesService.getAllItems().size());
		System.out.println("End...");
		
		((ConfigurableApplicationContext)applicationContext).close();
	}


}
